using System.Runtime.Serialization;
using RentalOfCars.Domain.Entities;

namespace RentalOfCars.Infrastructure.Entities
{
    [DataContract]
    public class Discount : IDiscount
    {
        public Discount(int id, int value)
        {
            Id = id;
            Value = value;
        }

        [DataMember]
        public int Id { get; private set; }

        [DataMember]
        public int Value { get; private set; }
    }
}